<script setup>
import { useUserStore } from '@/stores/user.js'
const userStore = useUserStore()
defineOptions({
  name: "HomeView"
})

</script>

<template>
  <div class="main">
    <el-button  @click="userStore.setToken('asdadsafgafa')">获取token</el-button>
    <el-button @click="userStore.removeToken()">退出登录</el-button>
    <el-text>{{ userStore.token }}</el-text>
  </div>
</template>

<style scoped>
.main {
  padding: 20px;
}
</style>
